package com.sdu.hotel.entity.system;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.sdu.hotel.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xyh
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table("sys_authority_resource")
public class SysAuthorityResource extends BaseEntity implements Serializable {

//    @TableId(type= IdType.ASSIGN_ID)
//    @JsonSerialize(using = ToStringSerializer.class)
//    //private String authority_resource_id;
//    private String authorityResourceId;

    @Column("authority_id")
    private String authorityId;

    @Column("resource_id")
    private String resourceId;

//    @Column("is_deleted")
//    @TableLogic
//    private int deleted = 0;
//
//    @Column(value = "create_time",fill = FieldFill.INSERT)
//    private Date createTime;

    @Column(value = "update_time",onInsertValue = "now()")
    private Date updateTime;

}
